package jy.pageModel;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Taccount entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "taccount", catalog = "jlubank")
public class Account implements java.io.Serializable {

	// Fields

	private String id;
	private String uid;

	private String name;
	private Integer currency;
	private Integer type;
	private String currencyStr;
	private String typeStr;
	private String uname;
	private String toacname;
	private float amount;
	private Date stime;
	
	private float changevalue;
	private String fid;
	private Integer stype;
	private String msg;
	// Constructors

	/** default constructor */
	public Account() {
	}

	/** minimal constructor */
	public Account(String id, String name) {
		this.id = id;
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getCurrency() {
		return currency;
	}

	public void setCurrency(Integer currency) {
		this.currency = currency;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public float getAmount() {
		return amount;
	}

	public void setAmount(float amount) {
		this.amount = amount;
	}

	public Date getStime() {
		return stime;
	}

	public void setStime(Date stime) {
		this.stime = stime;
	}

	public String getTypeStr() {
		return typeStr;
	}

	public void setTypeStr(String typeStr) {
		this.typeStr = typeStr;
	}

	public String getCurrencyStr() {
		return currencyStr;
	}

	public void setCurrencyStr(String currencyStr) {
		this.currencyStr = currencyStr;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	@Override
	public String toString() {
		return "Account [id=" + id + ", uid=" + uid + ", name=" + name
				+ ", currency=" + currency + ", type=" + type
				+ ", currencyStr=" + currencyStr + ", typeStr=" + typeStr
				+ ", uname=" + uname + ", amount=" + amount + ", stime="
				+ stime + "]";
	}



	public float getChangevalue() {
		return changevalue;
	}

	public void setChangevalue(float changevalue) {
		this.changevalue = changevalue;
	}

	public Integer getStype() {
		return stype;
	}

	public void setStype(Integer stype) {
		this.stype = stype;
	}

	public String getFid() {
		return fid;
	}

	public void setFid(String fid) {
		this.fid = fid;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getToacname() {
		return toacname;
	}

	public void setToacname(String toacname) {
		this.toacname = toacname;
	}

}